package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.ExperimentProcess;
import com.zhijian.medical.entity.vo.request.ExperimentProcessSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.ExperimentProcessSearchVo;
import com.zhijian.medical.entity.vo.response.ExperimentProcessVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 实验流程 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-04-06 22:09:16
 */
public interface ExperimentProcessService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    ExperimentProcess selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    ExperimentProcessVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param experimentProcess
     * @return
     */
    Long insert(ExperimentProcess experimentProcess);

    /**
     * 新增
     *
     * @param experimentProcessSaveOrUpdateVo
     * @return
     */
    Long insert(ExperimentProcessSaveOrUpdateVo experimentProcessSaveOrUpdateVo);

    /**
     * 更改
     *
     * @param experimentProcess
     * @return
     */
    boolean update(ExperimentProcess experimentProcess);

    /**
     * 修改
     *
     * @param experimentProcess
     * @return
     */
    boolean updateByPrimaryKeySelective(ExperimentProcess experimentProcess);

    /**
     * 修改
     *
     * @param experimentProcessSaveOrUpdateVo
     * @return
     */
    boolean update(ExperimentProcessSaveOrUpdateVo experimentProcessSaveOrUpdateVo);

    /**
     * 总数
     *
     * @param experimentProcessSearchVo
     * @return
     */
    Integer count(ExperimentProcessSearchVo experimentProcessSearchVo);

    /**
     * 列表
     *
     * @param experimentProcessSearchVo
     * @return
     */
    List<ExperimentProcessVo> selectList(ExperimentProcessSearchVo experimentProcessSearchVo);

    /**
     * 分页查询
     *
     * @param experimentProcessSearchVo
     * @return
     */
    Page<ExperimentProcessVo> selectPage(ExperimentProcessSearchVo experimentProcessSearchVo);

    /**
     * 生成实验报告
     *
     * @param experimentProcessId
     * @return
     */
    boolean createReport(Long experimentProcessId);
}